package service;

import dao.Dao;
import pojo.PageTools;
import pojo.Student;

import java.util.List;

public class Service {
    private Dao dao = new Dao();
    //查询总条数
//    //public int queryAllSize() {
//        return dao.queryAllSize();
//    }
    //分页查询
  // //总条数查询数据库
    public int dimQueryCountStudent(String sname, String sex) {
        return dao.dimQueryCountStudent(sname,sex);
    }
//模糊查询
    public List<Student> dimQueryStudent(String sname, String sex, PageTools pt) {
        return dao.dimQueryStudent(sname,sex,pt);
    }

    public int selectUser(String username, String password) {
        return dao.selectUser(username,password);
    }
}
